<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>修改用户</title>
	<Pintuer />
</head>
<body>
	<form action="{|U:'edit'}" method="POST">
	<p class="bg-main bg-inverse text-center margin-little-bottom padding-small-top padding-small-bottom" >用户编辑</p>
	<table class="table table-bordered table-hover table-condensed table-responsive">
		<tr>
			<td align="right">账户</td>
			<td><input type="text" name="username" value="{$field.username}" readOnly="true" /></td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">昵称</td>
			<td><input type="text" name="nickname" value="{$field.nickname}" /></td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">用户组</td>
			<td>
            	<select name="rid">
                    <list from="$role" name="$r">
                        <option value="{$r.rid}" <if value="$r.rid eq $field.rid">selected="selected"</if>>{$r.rname}</option>
                    </list>
            	</select>
        	</td>
		</tr>
		<tr>
			<td align="right">密码</td>
			<td><input type="password" name="password" /></td>
			<td>不填写密码则不修改密码！</td>
		</tr>
		<tr>
			<td align="right">密码确认</td>
			<td><input type="password" name="password_c" /></td>
			<td>不填写密码则不修改密码！</td>
		</tr>
		<tr>
			<td align="right">头像</td>
			<td>
				<a class="button bg-sub input-file" href="javascript:void(0);">
					+ 选择图像<input size="100" type="file" name="avatar" />
				</a>
			</td>
			<td>请上传头像！</td>
		</tr>
		<tr>
			<td align="right">状态</td>
			<td>
				<label><input type="radio" name="user_status" value="1" <if value="$field.user_status eq 1">checked</if> />正常</label>
				<label><input type="radio" name="user_status" value="0" <if value="$field.user_status eq 0">checked</if> />锁定</label>
			</td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">锁定日期</td>
			<td>
				<input type="text" name="lock_time" value="{$field.lock_time}" />
			</td>
			<td>超过当前时间设置时间，用户自动解锁</td>
		</tr>
		<tr>
			<td align="right">年龄</td>
			<td><input type="text" name="age" value="{$field.age}" /></td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">积分</td>
			<td><input type="text" name="credits" value="{$field.credits}" /></td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">性别</td>
			<td>
				<div class="form-group button-group radio">
					<label class="button <if value='$field.sex eq 1'>active</if>">
						<input name="sex" value="1" <if value="$field.sex eq 1">checked</if> type="radio">
						<span class="icon icon-male"></span>
						男
					</label>
					<label class="button <if value='$field.sex eq 2'>active</if>">
						<input name="sex" value="2" <if value="$field.sex eq 2">checked</if> type="radio">
						<span class="icon icon-female"></span>
						女
					</label>
					<label class="button <if value='$field.sex eq 3'>active</if>">
						<input name="sex" value="3" <if value="$field.sex eq 3">checked</if> type="radio">
						<span class="icon icon-child"></span>
						保密
					</label>
				</div>
			</td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">邮箱</td>
			<td><input type="text" name="email" value="{$field.email}" /></td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">手机</td>
			<td><input type="text" name="mobile" value="{$field.mobile}" /></td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">Q Q</td>
			<td><input type="text" name="qq" value="{$field.qq}" /></td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">签名</td>
			<td><textarea name="sign" cols="20" rows="2">{$field.sign}</textarea></td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">注册时IP</td>
			<td>{$field.regip}</td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">最后登录IP</td>
			<td>{$field.lastip}</td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">空间访问数</td>
			<td>{$field.spec_num}</td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">最后登录时间</td>
			<td>{$field.logintime|date:'Y-m-d H:i:s',@@}</td>
			<td>提示</td>
		</tr>
		<tr>
			<td align="right">注册时间</td>
			<td>{$field.regtime|date:'Y-m-d H:i:s',@@}</td>
			<td>提示</td>
		</tr>
		<tr>
			<td><input type="hidden" name="uid" value="{$hd.get.uid}" /></td>
			<td colspan="2">
				<button type="submit" class="button bg-sub">
					<i class="icon-check-square-o"></i>
					提交保存
				</button>
				<button type="button" class="button bg-main" onClick="location.href='{|U:'index'}'">
					<i class="icon-th-list"></i>
					用户列表
				</button>
			</td>
		</tr>
	</table>
</form>
</body>
</html>